:root {
  /* Reduce overall footer height */
  --footer-h: 280px; /* smaller height for footer */
  --blue-1: #cddef5; /* Darker blue shade */
  --blue-2: #fafcfd; /* Mid blue */
  --blue-3: #003a81; /* Light blue for the wave */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* ===== Wave Footer ===== */
.wave-footer {
  position: relative;
  min-height: var(--footer-h); /* Apply smaller height */
  color: #0815a5;
  overflow: hidden;
  padding: 50px 16px 40px;
  isolation: isolate;
  background: linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 60%, var(--blue-3) 100%); /* smooth gradient */
}

/* White wavy top edge */
.wave-footer .wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 90px; /* smaller wave crest */
  z-index: 2;
}

/* Soft inner wave highlight (optional) */
.wave-footer .wave-overlay {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 140px; /* Adjust the overlay height */
  opacity: .45;
  z-index: 1;
}

/* Content grid */
.footer-inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 52px;
}

/* Brand / About */
.footer-logo {
  height: 150px; /* Increased height to make logo larger */
  width: auto;
  display: block;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
  max-width: 100%; /* Ensure the logo scales properly */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Brand / About Section */
.brand-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: auto; /* Ensure enough space for the logo */
}

.brand-text {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: lowercase;
}

.about {
  margin: 6px 0 0;
  line-height: 1.7;
  font-size: 14px;
  color: #040946;
}

/* Lists */
.group-title {
  color: var(--teal);
  margin: 6px 0 14px;
  font-size: 18px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
}

.list a {
  color: #040946;
  text-decoration: none;
  opacity: .9;
}

.list a:hover {
  text-decoration: underline;
}
/*logo brain voyages*/
.logo img {
  height: 90px;  
  width: auto;
  display: block;      /* Increase size of logo */     
  margin-left: -10px; 
  margin-bottom: 0;  /* Slightly shift to the left (adjust as needed) */
}


/* Connect */
.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ci-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
}

.ci-label {
  font-size: 12px;
  opacity: .85;
  letter-spacing: .4px;
}

.ci-value {
  font-size: 14px;
  color: #040946;
  text-decoration: none;
  opacity: .95;
}

.ci-value:hover {
  text-decoration: underline;
}

/* Socials row */
.socials {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 6px 0 0;
  margin: 8px 0 0;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #040946;
  text-decoration: none;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .2s ease, background .2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .22);
}

/* Bottom copy bar */
.copybar {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: 12px;
  color: #040946;
}


/* ===== For About Us & IMT Courses Only ===== */
body.page-about .wave-top path,
body.page-imt .wave-top path {
  fill: url(#footerWaveBlend) !important;
}

body.page-about .wave-top defs,
body.page-imt .wave-top defs {
  display: block;
}

/* Define the gradient for blending */
body.page-about footer svg defs linearGradient#footerWaveBlend,
body.page-imt footer svg defs linearGradient#footerWaveBlend {
  stop-color: #071d3c; /* fallback just in case */
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wave-footer {
    padding: 120px 18px 88px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .copybar {
    margin-top: 28px;
  }

  .footer-logo {
    height: 100px; /* Adjust logo size on smaller screens */
    width:70px;
  }
}